import axios from '@/utils/http'
export const addAddress = data => {
  return axios.post('/userAddress/save',data)
}
export const getAddressList = () => {
  return axios.get('/userAddress/findUserAddress')
}
export const getAddress = id => {
  return axios.get(`/userAddress/${id}`)
}
export const updateAddress = data => {
  return axios.post('/userAddress/update',data)
}
export const deleteAddress = id => {
  return axios.get(`/userAddress/delete/${id}`)
}